<template>
  <!-- template下面只能有一层 -->
  <div>
    <router-view />
    <van-tabs v-model="active" type="false" class="selectTab">
      <van-tab title="关注">
        <!-- 引入组件 -->
        <Head />
      </van-tab>
      <van-tab title="广场" disabled></van-tab>
      <van-tab title="目标日">
        <Target />
      </van-tab>
      <van-tab to="/home/found/add">
        <template #title>
          <van-icon name="add-o" size="20" />
        </template>
        <router-view />
      </van-tab>
    </van-tabs>
  </div>
</template>

<script>
import { Toast } from "vant";
//引入组件
import Target from "../../components/found/Target";
import Head from "../../components/found/Head";
export default {
  //组件
  components: {
    Target,
    Head,
  },
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style scoped>
.selectTab {
  width: 750px;
  height: 48px;
  margin-top: 61px;
}
</style>
